<?php

namespace addons\sum\controller\gudong;

use addons\sum\controller\Common;
use addons\sum\service\gudong\Gudong as GudongService;

class Apply extends Common
{

    protected $noNeedLogin = [];
    protected $noNeedRight = ['*'];

    // 发起申请请求
    public function apply()
    {
        $user = auth_user();
        $params = $this->request->only([
            'user_name', 'phone', 'image_sfzrx', 'image_sfzgh'
        ]);
        $this->svalidate($params, ".apply");
        $store_service=new GudongService($user);
        $res=$store_service->apply($params);
        $this->success('申请成功');
    }
}
